FROM java:8
VOLUME /tmp
ENV profiles=$profiles
ENV port="8082"
ADD dx-lamp2.jar app.jar
ENTRYPOINT ["sh","-c","java -Xms64m -Xmx1024m -Duser.timezone=GMT+8 -Djava.security.egd=file:/dev/./urandom -jar /app.jar --server.port=$port --spring.profiles.active=$profiles "]